package com.hjj.controller;

import com.hjj.beans.User;
import com.hjj.services.UserServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    @Qualifier("userServicesImp")
    UserServices userServices;

    @RequestMapping("getAll.action")
    public ArrayList<User> getAll(){
        return userServices.getAll();
    }

}
